package com.yt.core.exception;

/**
 * Created by liujunshi on 16-1-22.
 */
public class CustomException extends RuntimeException {
	private static final long serialVersionUID = -2084401215148116454L;
	private String errCode;
	private String errMsg;

	public CustomException() {
	}

	public CustomException(String code) {
		super();
		this.errCode = code;
	}

	public CustomException(String code, String errMsg) {
		super(errMsg);
		this.errCode = code;
		this.errMsg = errMsg;
	}

	public String getErrCode() {
		return errCode;
	}

	public String getErrMsg() {
		return errMsg;
	}
}
